Page({
  onShow() {
    const currentPages = getCurrentPages();
    // 获取当前页面的页面路径
    const pageInstance = currentPages[currentPages.length - 1];
    console.log("setting页面", pageInstance.route);

    // 跳转到登录页
    wx.navigateTo({
      url: "/pages/login/index?redirecturl=" + pageInstance.route,
    });
  },
});
